<?php

/**
 * json actions.
 *
 * @package    lbreminder
 * @subpackage json
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class jsonActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
	$this->logMessage('jsonActions:executeIndex() --> Enter', 'debug');
	$myUserInfo = new UserInformation();
    
	if(!($jsonResponse = jsonRPCServer::handle($myUserInfo))) {
		$jsonResponse = 'no request';
	}

	$this->getResponse()->setContent($jsonResponse);
	$this->logMessage('jsonActions:executeIndex() --> Exit', 'debug');
	return sfView::NONE;
  }
}
